<?php

class Default_Form_Edit extends Zend_Form {

    public function init() {
        $this->setAction('')->setMethod('post');

        $userName = $this->createElement('text', 'txtUserId', array('label' => 'Tài khoản: ', 'value' => $_SESSION['user1']));
        $password = $this->createElement('password', 'prdPassword', array('label' => 'Mật khẩu: ', 'value' => ''));

        //$password1 = $this->createElement('password', 'prdPassword1', array('label' => 'Mật khẩu mới: ', 'value' => $_SESSION['']));
        //$password2 = $this->createElement('password', 'prdPassword2', array('label' => 'Nhập lại: ', 'value' => $_SESSION['']));
        
        $fullName = $this->createElement('text', 'txtFullName', array('label' => 'Họ tên: ', 'value' => $_SESSION['fullName1']));
        $address = $this->createElement('text', 'txtAddress', array('label' => 'Địa chỉ: ', 'value' => $_SESSION['address']));
        $phone = $this->createElement('text', 'txtPhone', array('label' => 'Điện thoại: ', 'value' => $_SESSION['phone']));
        $email = $this->createElement('text', 'txtEmail', array('label' => 'Thư điện tử: ', 'value' => $_SESSION['email']));
        $photo = $this->createElement('text', 'txtPhoto', array('label' => 'Hình: ', 'value' => $_SESSION['photo']));

        $this->addElement($userName)
                ->addElement($password)
                //->addElement($password1)
                //->addElement($password2)
                ->addElement($fullName)
                ->addElement($address)
                ->addElement($phone)
                ->addElement($email)
                ->addElement($photo)
                ->addElement('submit', 'frmRegistry', array('label' => 'Đồng ý'));
    }

}